import request from '@/utils/request'

const  PATH='/crm/clueTrack';

// 新增线索跟踪记录
export function addClueTrack(data) {
  return request({
    url: PATH,
    method: 'post',
    data: data
  })
}


// 为线索上报
export function falseClue(data) {
  return request({
    url: PATH,
    method: 'PUT',
    data: data
  })
}

//转商机
export function transform2Business(data) {
  return request({
    url: `${PATH}/transform`,
    method: 'PUT',
    data: data
  })
}


//捞取
export function resetClue(id) {
  return request({
    url: `${PATH}/resetClue`,
    method: 'PUT',
    data:{id:id,record:'重新捞取线索'}
  })
}
